import Home from "../Home.jsx"
import Classify from "../Classify.jsx"
import Car from "../Car.jsx"
import Info from "../Info.jsx"
import Cinfo from "../Cinfo.jsx"
import {Navigate} from "react-router-dom"
const routes=[
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/classify",
        element:<Classify></Classify>
    },
    {
        path:"/car",
        element:<Car></Car>
    },
    {
        path:"/info/:id",
        element:<Info></Info>
    },
    {
        path:"/cinfo",
        element:<Cinfo></Cinfo>
    },
    {
        path:"/",
        element:<Navigate to="/classify"></Navigate>
    },

]

export default routes